package com.pro.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 笑笑
 * @create 2021/11/4下午 07:46
 */
@Data
public class User {
    private Integer userId;//自增主键
    private String trueName;//用户真实姓名
    private String sex;//用户性别
    private String account;//用户账号唯一
    private String acatarUrl;//头像url路径
    private String email;//邮箱地址
    private String password;//密码
    private String remark;//备注
    private Integer enabled;//是否启用，1yes，2no
    private String phone;//手机号
    private String idCard;//身份证号码

    @DateTimeFormat(pattern = "yyyy-HH-dd")
    @JsonFormat(pattern = "yyyy-HH-dd hh:mm:ss")
    private String birthDate;//出生日期
    private Integer deptId;//部门id，外键
    private String freestyle;//个性签名

    @DateTimeFormat(pattern = "yyyy-HH-dd")
    @JsonFormat(pattern = "yyyy-HH-dd hh:mm:ss")
    private String registerDate;//注册时间
    private String registerIp;//注册时ip地址
    private Integer status;//状态，1使用中，2已注销，3冻结，4封停
    private Integer grade;//等级
    private Integer wages;//工资


    private String deptName;//部门名称

    public User() {
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAcatarUrl() {
        return acatarUrl;
    }

    public void setAcatarUrl(String acatarUrl) {
        this.acatarUrl = acatarUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getFreestyle() {
        return freestyle;
    }

    public void setFreestyle(String freestyle) {
        this.freestyle = freestyle;
    }

    public String getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(String registerDate) {
        this.registerDate = registerDate;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getWages() {
        return wages;
    }

    public void setWages(Integer wages) {
        this.wages = wages;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public User(Integer userId, String trueName, String sex, String account, String acatarUrl, String email, String password, String remark, Integer enabled, String phone, String idCard, String birthDate, Integer deptId, String freestyle, String registerDate, String registerIp, Integer status, Integer grade, Integer wages, String deptName) {
        this.userId = userId;
        this.trueName = trueName;
        this.sex = sex;
        this.account = account;
        this.acatarUrl = acatarUrl;
        this.email = email;
        this.password = password;
        this.remark = remark;
        this.enabled = enabled;
        this.phone = phone;
        this.idCard = idCard;
        this.birthDate = birthDate;
        this.deptId = deptId;
        this.freestyle = freestyle;
        this.registerDate = registerDate;
        this.registerIp = registerIp;
        this.status = status;
        this.grade = grade;
        this.wages = wages;
        this.deptName = deptName;
    }
}
